package com.zwz.bean;

import java.io.Serializable;

/**
 * @description：自定义Authentication对象，使得Subject除了携带用户的登录名外还可以携带更多信息
 * @author：zwz
 * @date：2016年2月29日 15:52:39
 */
public class ShiroUser implements Serializable {
    private static final long serialVersionUID = -1373760761780840081L;
    private String userId;
    private String userName;
    private String nickName;
    private String status;
    private String roleId;
    private String roleName;
    private String roleCode;
    
	public ShiroUser(String userId, String userName, String nickName,
			String status, String roleId, String roleName, String roleCode) {
		this.userId = userId;
		this.userName = userName;
		this.nickName = nickName;
		this.status = status;
		this.roleId = roleId;
		this.roleName = roleName;
		this.roleCode = roleCode;
	}
	
	
	public String getUserId() {
		return userId;
	}


	public void setUserId(String userId) {
		this.userId = userId;
	}


	public String getUserName() {
		return userName;
	}


	public void setUserName(String userName) {
		this.userName = userName;
	}


	public String getNickName() {
		return nickName;
	}


	public void setNickName(String nickName) {
		this.nickName = nickName;
	}


	public String getStatus() {
		return status;
	}


	public void setStatus(String status) {
		this.status = status;
	}


	public String getRoleId() {
		return roleId;
	}


	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}


	public String getRoleName() {
		return roleName;
	}


	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleCode() {
		return roleCode;
	}


	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}


	@Override
	public String toString() {
		return nickName;
	}

}